package com.hmall.api.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author Administrator
 */
@FeignClient(name = "user-service",path = "/inner/users")
public interface UserClient {
    @PutMapping("/money/deduct")
    public void deductMoney(@RequestParam("userId") Long userId,@RequestParam("pw") String pw,@RequestParam("amount") Integer amount);
}